package org.alesv.entranceExams.service.impl;

import org.alesv.entranceExams.dao.LoginDao;
import org.alesv.entranceExams.model.UserProfile;
import org.alesv.entranceExams.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * @author
 */
@Service
public class LoginServiceImpl implements LoginService {

	/**
	 * Acceso a la capa de persistencia de datos.
	 */
	@Autowired
	private LoginDao loginDao;

	@Override
	public UserProfile logIn(String user, String password) {
		return loginDao.logIn(user, password);
	}

	@Override
	public boolean logOut(String user) {
		return loginDao.logOut(user);
	}

}
